package org.jet.emall.rbac.service;


import org.jet.emall.common.restful.result.CommonPage;
import org.jet.emall.rbac.dto.AdminLoginLogDTO;
import org.jet.emall.rbac.dto.AdminOpLogDTO;

/**
 * @author xiaozai
 * @version 1.0
 * @date 2020-04-01 16:13
 */
public interface CustomAdminLogService {

    /**
     *    保存操作日志
     * @param adminLoginLogDTO
     */
    void saveOperationLog(AdminOpLogDTO adminLoginLogDTO);

    /**
     *    保存登录日志
     * @param dto
     */
    void saveLoginLog(AdminLoginLogDTO dto);

    /**
     *   分页查询登录日志
     * @param query
     * @param pageNum
     * @param pageSize
     * @return
     */
    CommonPage<AdminLoginLogDTO> getLoginLogPage(String query, Integer pageNum, Integer pageSize,Integer userId,Integer roleId);

    /**
     *   分页查询操作日志
     * @param query
     * @param pageNum
     * @param pageSize
     * @return
     */
    CommonPage<AdminOpLogDTO> getOperationLogPage(String query, Integer pageNum, Integer pageSize,Integer userId,Integer roleId);
}
